/**
 * author: lms
 */
import Vue from 'vue';
import LoadingExtends from '../extends/RBootLoading';

const LoadingConstructor = Vue.extend(LoadingExtends);

const LoadingHelper = {
  loading(options) {
    if(typeof options === 'string') {
      options = {
        target: options
      }
    }
    let constructor = new LoadingConstructor();
    constructor.loading(options)
    return constructor
  },
}

export default LoadingHelper
